﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ClockSphere
{
    public partial class FrmEditSett : Form
    {
        Form1 frmMain;

        public FrmEditSett(Form1 frmMain)
        {
            InitializeComponent();
            this.frmMain = frmMain;

            trbSpeed.Value = frmMain.Speed/12;
            lblSpeed.Text = frmMain.Speed.ToString();
        }

        private void trbSpeed_Scroll(object sender, EventArgs e)
        {
            frmMain.Speed = trbSpeed.Value * 12;
            lblSpeed.Text = frmMain.Speed.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
